package com.itheima.d1_num1;

public class Test {
    public static void main(String[] args) {
        RedFujiApple apple = new RedFujiApple();
        apple.bloom();
        apple.bearFruit();
        apple.bePicked();
        double total1 = FruitUtil.calculateApplePrice(apple, 3.5);
        double total2 = FruitUtil.calculateFruitPrice(apple, 2);
        System.out.println("红富士苹果总价："+total1);
        System.out.println("红富士苹果总价："+total2);

    }
}
